package com.lx.design.demo.ddd.domain.repository;

import com.lx.design.demo.ddd.domain.Order;

import java.util.Optional;
import java.util.UUID;

/**
 * @author lx
 * @description 存储库接口
 * @date 2021/2/5 15:34
 */
public interface OrderRepository {
    Optional<Order> findById(UUID id);
    void save(Order order);
}
